const data={
    name:'little'
}

function handle(data){
    const result = document.querySelector(".result");
    result.innerHTML = data.name; 
}

handle(data);